package wanbang.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import wanbang.entities.Cart;
import wanbang.service.ShowCartService;

@Controller
public class ShowCartController {
	@Autowired
	private ShowCartService showCartService;
	@ResponseBody
	@RequestMapping("/showCart")
	public List<Cart> showCart(Integer userId){
		return this.showCartService.selectAllCart(userId);
	}
}
